package com.fengwk.user.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fengwk.support.pndao.DaoGen;
import com.fengwk.user.face.entity.UsPermission;

@DaoGen(sqlCols = UsPermission.class)
public interface UsPermissionDao {
    
	int insert(UsPermission usPermission);
	int deleteByPermissionId(@Param("permissionId") Long permissionId);
	int updateByPermissionId(UsPermission usPermission);
	int countAll();
	UsPermission findByPermissionId(@Param("permissionId") Long permissionId);
	UsPermission findByPermission(@Param("permission") String permission);
	List<UsPermission> queryInPermissionIds(@Param("permissionIds") Collection<Long> permissionIds);
	List<UsPermission> page(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize);
	
}